<h2 style="text-align: center;">修改表单内容，离开时将会提醒！</h2>
<form [formGroup]="form"  class="great-form">
  <div class="great-form-group">
    <label>name:</label>
    <div class="great-input">
      <input type="text"  class="input" formControlName="name">
      <div class="great-form-error-text" *ngIf="form.get('name').dirty && form.get('name').errors">最多10个i汉字！</div>
    </div>
  </div>
  <div class="great-form-group">
    <label>age:</label>
    <div class="great-input">
      <input type="text"  class="input" formControlName="age">
      <div class="great-form-error-text" *ngIf="form.get('age').dirty && form.get('age').errors">三位数字！</div>
    </div>
  </div>
</form>
